package com.example.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * name: 东北宋小宝
 * date: 2020/8/13
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User {
    private Long id;
    private String nickname;
    private String username;
    private String password;
    private String email;
    private String avatar;
    private String salt;
    private Integer type;
    private Date creatTime;
    private Date updateTime;
    private List<Blog> blogs = new ArrayList<>();
}
